{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<div class="t-n-s-top">
    <div class="t-month-con">
		<form method="POST" action="">
        <div class="t-con-list">
            <div class="formitems inline">  
                <label class="fi-name" style="width:60px;">请选择：</label>  
                <div class="form-controls" style="float:left;display:inline; margin-left:10px;">  
                    <select class="mini" name="year" id="year">  
                        <option value="2015" {if $year == 2015}selected{/if}>2015</option> 
                        <option value="2014" {if $year == 2014}selected{/if}>2014</option> 
                        <option value="2013" {if $year == 2013}selected{/if}>2013</option>  
                        <option value="2012" {if $year == 2012}selected{/if}>2012</option>  
                        <option value="2011" {if $year == 2011}selected{/if}>2011</option>  
                        <option value="2010" {if $year == 2010}selected{/if}>2010</option>  
                        <option value="2009" {if $year == 2009}selected{/if}>2009</option>  
                        <option value="2008" {if $year == 2008}selected{/if}>2008</option>  
                    </select>  
                    <span>年</span>  
                </div>  
				<div class="form-controls" style="float:left;display:inline; margin-left:10px;">  
                    <select class="mini" name="month" id="month">  
                        <option value="1" {if $month == 1}selected{/if}>1</option> 
                        <option value="2" {if $month == 2}selected{/if}>2</option>  
                        <option value="3" {if $month == 3}selected{/if}>3</option>  
                        <option value="4" {if $month == 4}selected{/if}>4</option>  
                        <option value="5" {if $month == 5}selected{/if}>5</option>  
                        <option value="6" {if $month == 6}selected{/if}>6</option>  
                        <option value="7" {if $month == 7}selected{/if}>7</option>  
                        <option value="8" {if $month == 8}selected{/if}>8</option>  
                        <option value="9" {if $month == 9}selected{/if}>9</option>  
                        <option value="10" {if $month == 10}selected{/if}>10</option>  
                        <option value="11" {if $month == 11}selected{/if}>11</option>  
                        <option value="12" {if $month == 12}selected{/if}>12</option>  
                    </select>  
                    <span>月</span>  
					<button type="submit" class="btn"><i class="gicon-search"></i>搜索</button>
                </div>  
            </div>  
        </div>
	</div>


	<div class="t-month-chart" id="month_container">
	</div>
</div>
{/block} 

{block name="js"}
<script type="text/javascript" src="/Public/Plugins/Highcharts/highcharts.js?version={$version}"></script>
<script src="/Public/Plugins/My97DatePicker/WdatePicker.js?version={$version}"></script>
<script type="text/javascript">
var deposit_stat_list = '[';
var day_list = '[';
for (var i = 1; i <= {$day_num}; i ++)
{
	day_list = day_list + i + ',';
}
day_list = day_list.substring(0, day_list.length - 1);
day_list += ']';

{foreach from=$deposit_stat_list key=key item=item}
	deposit_stat_list = deposit_stat_list + {$item} + ',';
{/foreach}
deposit_stat_list = deposit_stat_list.substring(0, deposit_stat_list.length - 1);
deposit_stat_list += ']';

var sum_deposit_stat_list = '[';
{foreach from=$sum_deposit_stat_list key=key item=item}
	sum_deposit_stat_list = sum_deposit_stat_list + {$item} + ',';
{/foreach}
sum_deposit_stat_list = sum_deposit_stat_list.substring(0, sum_deposit_stat_list.length - 1);
sum_deposit_stat_list += ']';

var d = '{$date}';
{literal}
$(function (){
var chart = new Highcharts.Chart({
	chart: {
		renderTo: 'month_container',
		defaultSeriesType: 'line'
	},
	title: {
		text: d + ' 提现月统计'
	},
	subtitle: {
		text: ''
	},
	xAxis: {
		categories: eval(day_list)
	},
	yAxis: {
		title: {
			text: '提现数'
		}
	},
	tooltip: {
		enabled: false,
		formatter: function() {
			return '<b>'+ this.series.name +'</b><br/>'+
				this.x +': '+ this.y +'°C';
		}
	},
	plotOptions: {
		line: {
			dataLabels: {
				enabled: true
			},
			enableMouseTracking: false
		}
	},
	series: [{
		name: '提现数',
		data: eval(deposit_stat_list)
	}, {
		name: '提现总金额',
		data: eval(sum_deposit_stat_list)
	}]
});
});
</script>
{/literal}
{/block} 

{block name="css"}
<link rel="stylesheet" href="/Public/Css/acp/AcpOrder/order_num_stat.css" type="text/css" />
{/block} 
